package com.ibm.workplace.wcm.cqplugin.ui.actions;

import org.eclipse.jface.action.*;
import org.eclipse.jface.viewers.*;

import com.ibm.workplace.wcm.cqplugin.*;
import com.ibm.workplace.wcm.cqplugin.ui.views.*;


public class RefreshAction extends Action {
    
    private TableViewer tableViewer;

    public RefreshAction(TableViewer tableViewer) {
        super("refresh", Activator.getDefault().getImageRegistry().getDescriptor(Activator.IMAGE_REFRESH));
        setText("Refresh");
        
        this.tableViewer = tableViewer;
    }
    
    public void run() {
        if (tableViewer != null) {
        	//let's update it latter
            /*IBugQuery query = (IBugQuery)tableViewer.getData(IBugQuery.class.getName());
            if (query != null) {
                BugInfoView.getInstance().performSearch(query);
            }*/
        }
    }


}
